<html>
	<head>
		<title>mgmediabot template docs</title>
		<style type="text/css">
			pre {
				overflow: auto;
				width: 500px;
				border: 1px dotted black;
			}
		</style>
	</head>
	<body>
		<h2>Template usage</h2>

<h3>Flash Mediaplayer</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (optional, [html])</li>
	<li>path (mandatory)</li>
	<li>width (mandatory)</li>
	<li>height (mandatory)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}path=http://www.test.com/test.html|lightbox=true|lightboxcaption=My HTML Page|lightboxpreview=images/stories/mythumb.jpg|width=300|height=300{/mgmediabot2}
{mgmediabot2}path=http://www.test.com/test.html|popup=true|popupcaption=My Video|popuppreview=images/stories/mythumb.jpg|width=300|height=300{/mgmediabot2}
</pre><a href="html.tmpl">Download html.tmpl</a>
<h3>Quicktime player</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (optional, [quicktime|mov|mp4|m4u])</li>
	<li>path (mandatory)</li>
	<li>autoplay (optional, [1|0], default=see mgmediabot configuration)</li>
	<li>scale (optional, [<factor>|tofit|aspect], default=1)</li>
	<li>width (mandatory)</li>
	<li>height (mandatory)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}path=images/stories/media/video1.mov|width=300|height=300{/mgmediabot2}
{mgmediabot2}path=images/stories/media/video1.mov|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediabot2}
{mgmediabot2}path=images/stories/media/video1.mov|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediabot2}
</pre><a href="quicktime.tmpl">Download quicktime.tmpl</a>
<h3>MPEG player</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (mandatory, [mpegfile])</li>
	<li>path (mandatory)</li>
	<li>width (mandatory)</li>
	<li>height (mandatory)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}type=mpegfile|path=images/stories/media/video1.mpg|width=300|height=300{/mgmediabot2}
{mgmediabot2}type=mpegfile|path=images/stories/media/video1.mpg|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediabot2}
{mgmediabot2}type=mpegfile|path=images/stories/media/video1.mpg|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediabot2}
</pre><a href="mpegplayer.tmpl">Download mpegplayer.tmpl</a>
<h3>007MusicVideos player</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (mandatory, [007musicvideos])</li>
	<li>007musicvideosid (mandatory)</li>
	<li>width (optional, default=320)</li>
	<li>height (optional, default=285)</li>
	<li>linktext(optional, default=Go to 007MusicVideos.com</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}type=007musicvodeos|007musicvideosid=12345{/mgmediabot2}
{mgmediabot2}type=007musicvodeos|007musicvideosid=12345|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=320|height=285{/mgmediabot2}
{mgmediabot2}type=007musicvodeos|007musicvideosid=12345|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=320|height=285{/mgmediabot2}
</pre><a href="007musicvideos.tmpl">Download 007musicvideos.tmpl</a>
<h3>RealAudio player</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (optional, [realaudio|ra])</li>
	<li>path (mandatory)</li>
	<li>autoplay (optional, [1|0], default=see mgmediabot configuration)</li>
	<li>width (mandatory)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}path=images/stories/media/video1.ra|width=300{/mgmediabot2}
{mgmediabot2}path=images/stories/media/video1.ra|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=300|height=36{/mgmediabot2}
{mgmediabot2}path=images/stories/media/video1.ra|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=300|height=36{/mgmediabot2}
</pre><a href="realaudio.tmpl">Download realaudio.tmpl</a>
<h3>googlevideo player</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (mandatory, [googlevideo])</li>
	<li>docid (mandatory)</li>
	<li>autoplay (optional, [true,false], default=see mgmediabot configuration)</li>
	<li>width (optional, default=400)</li>
	<li>height (optional, default=326)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}type=googlevideo|docid=12345{/mgmediabot2}
{mgmediabot2}type=googlevideo|docid=12345|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=400|height=326{/mgmediabot2}
{mgmediabot2}type=googlevideo|docid=12345|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=400|height=326{/mgmediabot2}
</pre><a href="googlevideo.tmpl">Download googlevideo.tmpl</a>
<h3>DivX Webplayer</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (optional, [flashmediaplayer|flv|xml|mp3|jpg|gif|png|rbs|rtmp|swf])</li>
	<li>path (mandatory, you can add path multiple times)</li>
	<li>autoplay (optional, [true|false], default=see mgmediabot configuration)</li>
	<li>allowcontextmenu (optional, [true, false], default=true)</li>
	<li>width (mandatory)</li>
	<li>height (mandatory)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}path=images/stories/media/video1.divx|width=300|height=300{/mgmediabot2}
{mgmediabot2}path=images/stories/media/video1.divx|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediabot2}
{mgmediabot2}path=images/stories/media/video1.divx|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediabot2}
</pre><a href="divx.tmpl">Download divx.tmpl</a>
<h3>youtube player</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (mandatory, [youtube])</li>
	<li>youtubeid (mandatory)</li>
	<li>autoplay (optional, [true,false], default=see mgmediabot configuration)</li>
	<li>wmode (optional, default=transparent)</li>
	<li>width (optional, default=425)</li>
	<li>height (optional, default=350)</li>
	<li>displayrelated (optional [0,1], default=0)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}type=youtube|youtubeid=12345{/mgmediabot2}
{mgmediabot2}type=youtube|youtubeid=12345|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=486|height=412{/mgmediabot2}
{mgmediabot2}type=youtube|youtubeid=12345|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=486|height=412{/mgmediabot2}
</pre><a href="youtube.tmpl">Download youtube.tmpl</a>
<h3>myvideo.de player</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (mandatory, [myvideode])</li>
	<li>myvideodeid (mandatory)</li>
	<li>autoplay (not supported, no parameter known, default=see mgmediabot configuration)</li>
	<li>width (optional, default=425)</li>
	<li>height (optional, default=350)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}type=myvideode|myvideodeid=12345{/mgmediabot2}
{mgmediabot2}type=myvideode|myvideodeid=12345|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=486|height=412{/mgmediabot2}
{mgmediabot2}type=myvideode|myvideodeid=12345|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=486|height=412{/mgmediabot2}
</pre><a href="myvideode.tmpl">Download myvideode.tmpl</a>
<h3>WindowsMedia player</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (optional, [windowsmedia|wmv|avi|mpg|mpeg|wma|asx])</li>
	<li>path (mandatory)</li>
	<li>autoplay (optional, [1|0], default=see mgmediabot configuration)</li>
	<li>wmode (optional, default=opaque)</li>
	<li>contextmenu (optional, default=1)</li
	<li>strechtofit (optional, default=false)</li>
	<li>width (mandatory)</li>
	<li>height (mandatory)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}path=images/stories/media/video1.wmv|width=300|height=300{/mgmediabot2}
{mgmediabot2}path=images/stories/media/video1.wmv|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediabot2}
{mgmediabot2}path=images/stories/media/video1.wmv|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediabot2}
</pre><a href="windowsmedia.tmpl">Download windowsmedia.tmpl</a>
<h3>JW FLV MEDIA PLAYER 4.1</h3>
More infos in the available paramter under:<br/>
<a href="http://code.jeroenwijering.com/trac/wiki/FlashVars">http://code.jeroenwijering.com/trac/wiki/FlashVars</a><br/>
<a href="http://code.jeroenwijering.com/trac/browser/trunk/as3/player.pdf">http://code.jeroenwijering.com/trac/browser/trunk/as3/player.pdf</a>
<h4>Parameters:</h4> 
<ul>
	<li>type (optional, [flmediaplayer|flv|mp3|xml|jpg|gif|png|rbs|rtmp])</li>
	<li>Single file usage, no playlist is used, just this file will get played)
		<ul>
			<li>file (mandatory)
    		<li>author (optional)
    		<li>description (optional)
    		<li>duration (optional)
    		<li>image (optional)
   		 	<li>link (optional)
    		<li>start (optional)
    		<li>title (optinal)
		</ul>
	</li>
	<li>or use th playlist feature give the following parameter multiple timess
		<ul>		
			<li>path (mandatory)</li>
			<li>title (optional)</li>
			<li>author (optional)</li>
			<li>link (optional)</li>
			<li>image (optional)</li>
			<li>description (optional)</li>
			<li>item (optional)</li>
			<li>shuffle (optional)</li>
			<li>repeat (optional, [false|list|always])</li>
		</ul>
	</li>
	<li>color settings
    	<ul>
			<li>backcolor (optional)</li>
    		<li>frontcolor (optional)</li>
    		<li>lightcolor (optional)</li>
    		<li>screencolor (optional)</li>
		</ul>
	</li>
	<li>Control the UI
    	<ul>
			<li>controlbar (optional, [bottom|over|none], default=bottom)</li> 
			<li>controlbarsize (optional)</li> 
    		<li>playlist (optional, [bottom|right|none] default=none)</li>
    		<li>playlistsize (optional)</li>
    		<li>skin (optional, [path/to/myskin.swf])</li>
			<li>mute (optional, [true|false])</li>
			<li>volume (optional)</li>
			<li>stretching (optional, [none|exactfit|uniform|fill], default=uniform)</li>
			<li>quality (optional, [true|false])</li>
			<li>displayclick (optional [play|link|fullscreen|none|mute|next])</li>
			<li>bufferlength (optional [seconds])</li>
			<li>logo (optional, [url])</li>
			<li>displayheight (optional)</li>
			<li>displaywidth (optional)</li>
		</ul>
	</li>
	<li>autoplay (optional, [true|false], default=see mgmediabot configuration)</li>
	<li>allowscriptaccess (default=true)</li>
	<li>allowfullscreen (default=true)</li>
	<li>thumbsinplaylist, (optional, [true|false], default=false)</li>
	<li>searchbar (optional, [true,false], default=false)</li>
	<li>searchlink (optional, default=http://search.longtail.tv/%3Fq%3D)</li>
	<li>width (mandatory)</li>
	<li>height (mandatory)</li>
    <li>abouttext (optional)</li>
    <li>aboutlink (optional)</li>
    <li>id (optional)</li>
    <li>linktarget (optional)</li>
    <li>plugins (optional)</li>
    <li>streamer (optional)</li>
    <li>token (optional)</li>
    <li>tracecall (optional)</li>
	<li>client (optional)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}path=images/stories/media/video1.flv|path=images/stories/media/video2.flv|title=Video 1|title=Video 2|width=300|height=300|displayheight=200{/mgmediabot2}
{mgmediabot2}path=images/stories/media/video1.flv|path=images/stories/media/video2.flv|title=Video 1|title=Video 2|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=300|height=300|displayheight=200{/mgmediabot2}
{mgmediabot2}path=images/stories/media/video1.flv|path=images/stories/media/video2.flv|title=Video 1|title=Video 2|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=300|height=300|displayheight=200{/mgmediabot2}
</pre><a href="flashmediaplayer.tmpl">Download flashmediaplayer.tmpl</a>
<h3>Flash player</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (optional, [flash|swf])</li>
	<li>path (mandatory)</li>
	<li>width (mandatory)</li>
	<li>height (mandatory)</li>
	<li>wmode (optional, default transparent)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}path=images/stories/media/flash.swf|width=300|height=300{/mgmediabot2}
{mgmediabot2}path=images/stories/media/flash.swf|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediabot2}
{mgmediabot2}path=images/stories/media/flash.swf|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediabot2}
</pre><a href="flash.tmpl">Download flash.tmpl</a>
<h3>stage6 player</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (mandatory, [stage6])</li>
	<li>stage6id (mandatory)</li>
	<li>autoplay (optional, [true,false], default=see mgmediabot configuration)</li>
	<li>width (optional, default=640)</li>
	<li>height (optional, default=272)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}type=stage6|stage6id=12345{/mgmediabot2}
{mgmediabot2}type=stage6|stage6id=12345|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=486|height=412{/mgmediabot2}
{mgmediabot2}type=stage6|stage6id=12345|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=486|height=412{/mgmediabot2}
</pre><a href="stage6.tmpl">Download stage6.tmpl</a>
<h3>Flash Mediaplayer for playlists</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (optional, [flmediaplayerxml|xml)</li>
	<li>path (mandatory)</li>
	<li>allowfullscreen (default=true)</li>
	<li>displayheight (mostly needed, default=200)</li>
	<li>shuffle (optional default=false)</li>
	<li>repeat (optional, [true|false|list], default=true)</li>
	<li>thumbsinplaylist, (optional, [true|false], default=false)</li>
	<li>autoplay (optional, [true|false], default=see mgmediabot configuration)</li>
	<li>width (mandatory)</li>
	<li>height (mandatory)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<b>Hint:</b>: The displayheight parameter will help you to adjust the playlist height, aspect ratio and so on, so the displayheight is only the height of the display over transportbar, so height should be displayheight+20(transportbar)+playlistheight.
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}path=images/stories/media/playlist.xml|width=300|height=300|displayheight=200{/mgmediabot2}
{mgmediabot2}path=images/stories/media/playlist.xml|lightbox=true|lightboxcaption=My Playlist|lightboxpreview=images/stories/myvideothumb.jpg|width=300|height=300|displayheight=200{/mgmediabot2}
{mgmediabot2}path=images/stories/media/playlist.xml|popup=true|popupcaption=My Playlist|popuppreview=images/stories/myvideothumb.jpg|width=300|height=300|displayheight=200{/mgmediabot2}
</pre><a href="flashmediaplayerxml.tmpl">Download flashmediaplayerxml.tmpl</a>
<h3>brightcove player</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (mandatory, [brightcove])</li>
	<li>brightcoveid (mandatory)</li>
	<li>autoplay (optional, [true,false], default=see mgmediabot configuration)</li>
	<li>width (optional, default=486)</li>
	<li>height (optional, default=412)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}type=brightcove|brightcoveid=12345{/mgmediabot2}
{mgmediabot2}type=brightcove|brightcoveid=12345|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=486|height=412{/mgmediabot2}
{mgmediabot2}type=brightcove|brightcoveid=12345|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=486|height=412{/mgmediabot2}
</pre><a href="brightcove.tmpl">Download brightcove.tmpl</a>
<h3>RealVideo player</h3>
<h4>Parameters:</h4> 
<ul>
	<li>type (optional, [realvideo|rm|rv])</li>
	<li>path (mandatory)</li>
	<li>autoplay (optional, [1|0], default=see mgmediabot configuration)</li>
	<li>width (mandatory)</li>
	<li>height (mandatory)</li>
	<li><a href="#moreparams">more parameters</a></li>
</ul>

<h4>Usage:</h4>
<pre style="width: 500px; border: 1px dotted black">
{mgmediabot2}path=images/stories/media/video1.rm|width=300|height=300{/mgmediabot2}
{mgmediabot2}path=images/stories/media/video1.rm|lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediabot2}
{mgmediabot2}path=images/stories/media/video1.rm|popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediabot2}
</pre><a href="realvideo.tmpl">Download realvideo.tmpl</a>		<a name="moreparams"><h3>More parameters</h3></a>
		<small>If you use the popup or lightbox parameter, width and height are mandatory!</small><br>
		<ul>
			<li><strong>popup</strong> (optional [Link Text]), addidtional params:
				<ul>
					<li>popuppreview (optional, [path to your preview image])</li>
					<li>popupcaption (optional, [title of the link])</li>
				</ul>
			</li>
			<li><strong>lightbox</strong> (optional [Link text or grouping of multiple items with the same text here]), additional params:
				<ul>
					<li>lightboxpreview  (optional, [path to your preview image])</li>
					<li>lightboxcaption (optional, [title of the link, and caption of the lightbox])  </li>
				</ul>
			</li>
		</ul>
	</body>
</html>
